 public class ForLoopDemoL2{

        int[] clubCounts = {25,32,18};
        Srting[] clubNames = {"编程社","动漫社","志愿者社"};
        int allTotal = 0; //所有社团总人数

        System.out.println("各社团报名人数：");
        for(int count:clubCounts) {
            System.out.println(count + "");
            allTotal += count;
        }

        System.out.println("\n 社团名称-报名人数明细 ：");
        for (int i = 0; i < clubNames.length; i++){
            System.out.println(clubNames[i] + ":" + clubCounts[i] + "人");
     }
        System.out.println("\n 所有社团总报名人数 ：" + allTotal);
    }

